package com.msb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName: MyController
 * @Author: zw
 * @Description: 出百万拳，行万里路；
 * @Create 2024/5/18-23:33
 * @Version 1.0
 */
// 添加注解Controller 会自动注入对象到spring容器中
@Controller
@RequestMapping("/test01")
public class MyController {

    @ResponseBody
    @GetMapping("/test")
    // 该注解可以直接在页码上返回
    public String test01() {
        return "hello,springboot-zhaowang";
    }
}
